#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main("")
{
	float month = 0, ticket = 0,discounts=0;
	scanf("%f %f",&month,&ticket);
	if (month == 5, 7 <= month <= 10)
	{
		if (ticket >= 20)
		{
			discounts = 0.15;
			printf("%f", discounts)
		}
		else(ticket < 20)
		{
			discounts = 0.05
			printf("%f",discounts);
		}
	}
	if (1<=month <=4, 11<= month <= 12)
	{
		if (ticket >= 20)
		{
			discounts = 0.30;
			printf("%f", discounts)
		}
		else(ticket < 20)
		{
			discounts = 0.20;
				printf("%f", discounts);
		}
	}

	return 0;
}